
#include "jncFntHandlerDb.h"
#include <string>



static HandlerTable* table = NULL;

Idnb computeId(const char* s)
{
  if(!s)
    if(!strlen(s))
      return UNSET;
  boost::hash<std::string> hashv;
  return hashv(s);
}

Idnb computeId(const std::vector<std::string>& tok)
{
  std::string s;
  for(std::vector<std::string>::const_iterator i = tok.begin(); i != tok.end(); i++)
    s += *i;
  if(!s.length())
    return UNSET;
  return computeId(s.c_str());
}

HandlerTable* AllocNamespaceTable()
{
  if(!table)
    table = new HandlerTable();
  return table;
}



